{if $current_user}
<div class="user_info">
    <p><a href="{$current_location}/{$current_user}"><img src="{if $current_user_info.avatar_thumb}{$current_location}/{$smarty.const.USER_IMAGES_DIR}/{$current_user_info.avatar_thumb}{else}{$skin_images_dir}/user.png{/if}"></a></p>
    {if $current_user != $smarty.session.id}
        <b><a href="{$current_location}/{$current_user}">{$current_user_info.first_name} {$current_user_info.last_name}{if $current_user_info.login} ({$current_user_info.login}){/if}</a></b>
        {*if $smarty.session.loggedIn}<br><small>[<a href="{$current_location}/{$current_user}/add">{$lang.add_to_friends}</a>]</small>{/if*}
    {/if}
    <hr id="hr">
</div>
{/if}
<div>
    <ol class="menu">
        {if $current_user}
            {if $smarty.const.CAN_EDIT}<li>
                <a href="{$current_location}/{$index_script}?{$place_name}=new_wish">{$lang.menu_add_wish}</a></li>
            {/if}
            <li><a href="{$current_location}/{$current_user}">{if $smarty.const.CAN_EDIT}{$lang.menu_my_wishes}{else}{$lang.menu_all_wishes}{/if}</a> {if $current_user_info.T > 0}<font style="font-size: 1em;">({$current_user_info.T})</font>{/if}</li>
            <li id="sub"><label title="{$lang.help_actual}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/{$current_user}/actual">{$lang.menu_my_wishes_actual}</a> {if $current_user_info.S > 0}<font>({$current_user_info.S})</font>{/if}</li>
            <li id="sub"><label title="{$lang.help_waiting}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/{$current_user}/waiting">{$lang.menu_my_wishes_waiting}</a> {if $current_user_info.N > 0}<font>({$current_user_info.N})</font>{/if}</li>
            <li id="sub"><label title="{$lang.help_approved}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/{$current_user}/approved">{$lang.menu_my_wishes_approved}</a> {if $current_user_info.A > 0}<font>({$current_user_info.A})</font> {/if}</li>
            <li id="sub"><label title="{$lang.help_presented}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/{$current_user}/presented">{$lang.menu_my_wishes_presented}</a> {if $current_user_info.P > 0}<font>({$current_user_info.P})</font> {/if}</li>
            {if $smarty.const.CAN_EDIT}
                {assign var=ME_T value=`$current_user_info.ME_N+$current_user_info.ME_A+$current_user_info.ME_P`}
                <li><a href="{$current_location}/iwish">{$lang.menu_i_wish}</a> {if $ME_T > 0}<font style="font-size: 1em;">({$ME_T})</font>{/if}</li>
                <li id="sub"><label title="{$lang.help_me_waiting}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/iwish/waiting">{$lang.menu_i_wish_waiting}</a> {if $current_user_info.ME_N > 0}<font>({$current_user_info.ME_N})</font>{/if}</li>
                <li id="sub"><label title="{$lang.help_me_approved}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/iwish/approved">{$lang.menu_i_wish_approved}</a> {if $current_user_info.ME_A > 0}<font>({$current_user_info.ME_A})</font>{/if}</li>
                <li id="sub"><label title="{$lang.help_me_presented}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/iwish/presented">{$lang.menu_i_wish_presented}</a> {if $current_user_info.ME_P > 0}<font>({$current_user_info.ME_P})</font>{/if}</li>
                <li><a href="{$current_location}/settings">{$lang.menu_settings}</a></li>
            {/if}        
        {/if}
        
        
        {*if $smarty.const.CAN_EDIT}
        <li><a href="{$current_location}/{$index_script}?{$place_name}=new_wish">{$lang.menu_add_wish}</a></li>
        <li><a href="{$current_location}/{$smarty.session.id}">{$lang.menu_my_wishes}</a> {if $current_user_info.T > 0}<font style="font-size: 1em;">({$current_user_info.T})</font> {/if}</li>
        <li id="sub"><label title="{$lang.help_actual}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/{$smarty.session.id}/actual">{$lang.menu_my_wishes_actual} {if $current_user_info.S > 0}<font>({$current_user_info.S})</font> {/if}</a></li>
        <li id="sub"><label title="{$lang.help_waiting}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/{$smarty.session.id}/waiting">{$lang.menu_my_wishes_waiting} {if $current_user_info.N > 0}<font>({$current_user_info.N})</font> {/if}</a></li>
        <li id="sub"><label title="{$lang.help_approved}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/{$smarty.session.id}/approved">{$lang.menu_my_wishes_approved} {if $current_user_info.A > 0}<font>({$current_user_info.A})</font> {/if}</a></li>
        <li id="sub"><label title="{$lang.help_presented}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/{$smarty.session.id}/presented">{$lang.menu_my_wishes_presented} {if $current_user_info.P > 0}<font>({$current_user_info.P})</font> {/if}</a></li>
        <li><a href="{$current_location}/iwish">{$lang.menu_i_wish}</a></li>
        <li id="sub"><a href="{$current_location}/iwish/waiting">{$lang.menu_i_wish_waiting}</a></li>
        <li id="sub"><a href="{$current_location}/iwish/approved">{$lang.menu_i_wish_approved}</a></li>
        <li id="sub"><a href="{$current_location}/iwish/presented">{$lang.menu_i_wish_presented}</a></li>
        <li><a href="{$current_location}/settings">{$lang.menu_settings}</a></li>
        {elseif $current_user}
        <li><a href="{$current_location}/{$current_user}">{$lang.menu_all_wishes}</a></li>
        <li id="sub"><label title="{$lang.help_actual}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/{$current_user}/actual">{$lang.menu_my_wishes_actual}</a></li>
        <li id="sub"><label title="{$lang.help_waiting}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/{$current_user}/waiting">{$lang.menu_my_wishes_waiting}</a></li>
        <li id="sub"><label title="{$lang.help_approved}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/{$current_user}/approved">{$lang.menu_my_wishes_approved}</a></li>
        <li id="sub"><label title="{$lang.help_presented}">&nbsp;&nbsp;&nbsp;</label>&nbsp;<a href="{$current_location}/{$current_user}/presented">{$lang.menu_my_wishes_presented}</a></li>        
        {/if*}
    </ol>
</div>